﻿#pragma once
#include "afxsock.h"

//#include "ServerDlg.h"
class CServerDlg;

class CServerSocket :
	public CSocket
{
public:
	CServerSocket(void);
	~CServerSocket(void);

	void SetDialog(CServerDlg *pDialog);

	/*
	当套接字接收连接请求时触发该事件
	virtual void OnAccept(int nErrorCode);
	nErrorCode:错误代码
	*/
	virtual void OnAccept(int nErrorCode);

protected:
	CServerDlg* m_pDlg;//添加成员变量  
};

